package com.atguigu.eduService.client;

import com.atguigu.commonUtils.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "service-vod",fallback = VodClientImpl.class)
@Component
public interface VodClient {

    @ApiOperation("删除视频")
    @DeleteMapping("/eduVod/video/deleteVideo/{id}")
    public Result<String> deleteVideo(@PathVariable("id") String id);

    @ApiOperation("删除多个视频")
    @DeleteMapping("/eduVod/video/deleteBatch")
    public Result<String> deleteBatch(@RequestParam("videoIdList") List<String> videoIdList);
}
